package com.umeox.watch.moto.dataservice.constants;


public class Constants {
    public static final String TAG = "device_launcher";
    /**
     * 拒绝陌生人来电广播携带参数
     * 0: 关闭，默认
     * 1：开启
     */
    public static final String EXTRA_REFUSE_PHONE = "refuse_phone";
    /**
     * 禁止关机广播携带参数
     * 0: 关闭，默认
     * 1：开启
     */
    public static final String EXTRA_PROHIBIT_SHUTDOWN = "prohibit_shutdown";

    /**
     * 定位请求广播携带参数
     * 定位原因代码
     */
    public static final String EXTRA_LOC_REASON = "locReason";
    /**
     * 远程定位请求携带参数
     * App登录帐号
     */
    public static final String EXTRA_LOC_USER = "reqUser";
    /**
     * 远程定位请求携带参数
     * 服务端生成的请求码
     */
    public static final String EXTRA_LOC_CODE = "locCode";
    /**
     * 远程定位请求携带参数
     * 定位优先级
     * 0: 网络
     * 1：GPS
     */
    public static final String EXTRA_LOC_PRIORITY = "priority";

    /**
     * 语音电话通话结束广播携带参数名称
     * 通话联系人电话簿中名称
     */
    public static final String EXTRA_CONTACT_NAME = "contact_name";
    /**
     * 语音电话通话结束广播携带参数名称
     * 1：呼出电话
     * 2：呼入电话
     * 拨打视频电话时携带该参数
     * 0：视频电话
     * 1：VOIP电话
     */
    public static final String EXTRA_CALL_TYPE = "call_type";
    /**
     * 语音电话通话结束广播携带参数名称
     * 通话联系人电话号码
     */
    public static final String EXTRA_PHONE_NUMBER = "phone_number";
    /**
     * 语音电话通话结束广播携带参数名称
     * 电话接听时间戳
     */
    public static final String EXTRA_OFFHOOK_TIME = "offhook_time";
    /**
     * 语音电话通话结束广播携带参数名称
     * 通话时长，单位毫秒
     */
    public static final String EXTRA_CALL_DURATION = "call_duration";
    /**
     * 广播携带参数名称
     * 手表关注着帐号
     */
    public static final String EXTRA_FOLLOWER_ID = "follwer_id";

    public static final String EXTRA_CHAT_MSG = "chat_msg";

    public static final String EXTRA_MAKE_FRIEND_STATUS = "make_friend_status";

    /**
     * 位置改变广播携带参数
     * 手表位置信息
     */
    public static final String EXTRA_LOCATION_INFO = "location_info";
    /**
     * SOS 相关
     */
    public static final String EXTRA_SOS_ID = "sos_id";
    public static final String EXTRA_FILE_ID = "file_id";

    public static final String APPLICATION_INTENT = "com.wherecom.intent";
    public static final String APPLICATION_ACTION = APPLICATION_INTENT + ".action";
    /********************************Launcher应用**********************************************/
    //通知Launcher应用设备已解绑广播
    public static final String ACTION_UNBIND = APPLICATION_ACTION + ".UNBOUND";
    //通知Launcher应用设备已绑定广播
    public static final String ACTION_ACTIVATION = APPLICATION_ACTION + ".ACTIVATION";
    //通知Launcher应用关机广播
    public static final String ACTION_LOCATION_COMPLETED = APPLICATION_ACTION + ".LOCATION_COMPLETED";
    //壁纸全部下载完毕，通知Launcher更新壁纸
    public static final String ACTION_WALLPAPER_DOWNLOADED = APPLICATION_ACTION + ".WALLPAPER_DOWNLOADED";

    //上课禁用功能关闭广播
    public static final String ACTION_ENABLE_FEATURES = APPLICATION_ACTION + ".ENABLE_STUDYMODE";
    //上课禁用功能开启广播
    public static final String ACTION_DISABLE_FEATURES = APPLICATION_ACTION + ".DISABLE_STUDYMODE";

    /********************************Launcher应用**********************************************/

    /********************************语音助手应用处理**********************************************/
    //定位成功，通知语音助手应用刷新位置
    public static final String ACTION_LOCATION_SUCCESS = APPLICATION_ACTION + ".LOCATION_CHANGED";
    /********************************语音助手应用处理**********************************************/

    /********************************系统处理*****************************************/
    //远程监听
    public static final String ACTION_CALL_PHONE = APPLICATION_ACTION + ".CALL_PHONE";
    //远程重启
    public static final String ACTION_REMOTE_REBOOT = APPLICATION_ACTION + ".REMOTE_REBOOT";
    //远程关机
    public static final String ACTION_REMOTE_POWEROFF = APPLICATION_ACTION + ".REMOTE_POWEROFF";
    //通知系统开启白名单功能广播
    public static final String ACTION_REFUSE_PHONE = APPLICATION_ACTION + ".REFUSE_PHONE";
    //通知系统禁止关机功能广播
    public static final String ACTION_PROHIBIT_SHUTDOWN = APPLICATION_ACTION + ".PROHIBIT_SHUTDOWN";
    //远程拍摄视频
    public static final String ACTION_SILENT_RECORD_VIDEO = APPLICATION_ACTION + ".SILENT_RECORD_VIDEO";
    //远程拍照
    public static final String ACTION_SILENT_TAKE_PICTURE = APPLICATION_ACTION + ".SILENT_TAKE_PICTURE";
    //点赞
    public static final String ACTION_THUMBS_UP = APPLICATION_ACTION + ".THUMBS_UP";
    /********************************系统处理*****************************************/

    /********************************闹钟应用处理*****************************************/
    //闹钟列表刷新广播
    public static final String ACTION_UPDATED_ALARMLIST = APPLICATION_ACTION + ".UPDATE_ALARM_LIST";
    //取消设置的闹钟广播
    public static final String ACTION_CANCEL_ALARM = APPLICATION_ACTION + ".CANCEL_ALARM";
    /********************************闹钟应用处理*****************************************/


    /********************************祈祷时间应用处理*****************************************/
    //祈祷提醒闹钟列表刷新广播
    public static final String ACTION_UPDATED_PRAYER_ALARMLIST = APPLICATION_ACTION + ".UPDATE_PRAYER_ALARM_LIST";
    //取消设置的闹钟广播
    public static final String ACTION_CANCEL_PRAYER_ALARM = APPLICATION_ACTION + ".CANCEL_PRAYER_ALARM";
    //祈祷时间列表刷新广播
    public static final String ACTION_UPDATED_PRAYER_TIME = APPLICATION_ACTION + ".UPDATE_PRAYER_TIME";
    /********************************闹钟应用处理*****************************************/

    //邀请视频电话广播
    public static final String ACTION_INCOMING_VIDEO_CALL = APPLICATION_ACTION + ".INCOMING_VIDEO_CALL";
    //邀请VOIP电话广播
    public static final String ACTION_INCOMING_VOIP_CALL = APPLICATION_ACTION + ".INCOMING_VOIP_CALL";
    //邀请PTT广播
    public static final String ACTION_INCOMING_PTT_CALL = APPLICATION_ACTION + ".INCOMING_PTT_CALL";
    //拨打视频电话
    public static final String ACTION_OUTGOING_VIDEO_CALL = APPLICATION_ACTION + ".OUTGOING_VIDEO_CALL";
    //拨打VOIP电话
    public static final String ACTION_OUTGOING_VOIP_CALL = APPLICATION_ACTION + ".OUTGOING_VOIP_CALL";
    //视频电话接通响铃广播
    public static final String ACTION_RINGING_VIDEO_CALL = APPLICATION_ACTION + ".RINGING_VIDEO_CALL";

    public static final String ACTION_CANCEL_AGORA_CALL = APPLICATION_ACTION + ".CANCEL_AGORA_CALL";

    public static final String ACTION_MAKE_FRIEND = APPLICATION_ACTION + ".MAKE_FRIEND";

    /********************************语聊应用处理*****************************************/
    //新的语聊消息推送广播
    public static final String ACTION_NEW_CHAT_MESSAGE = APPLICATION_ACTION + ".NEW_CHAT_MESSAGE";
    /********************************语聊应用处理*****************************************/

    /********************************数据同步服务处理*****************************************/
    //手表开启数据流量，进入主页
    public static final String ACTION_LAUNCHED = APPLICATION_ACTION + ".LAUNCHED";

    //收到设备解绑推送，需要清空本地数据，重新获取设备配置信息
    public static final String ACTION_RESET = APPLICATION_ACTION + ".RESET";
    //收到设备绑定推送，重新获取设备配置信息
    public static final String ACTION_ACTIVATING = APPLICATION_ACTION + ".ACTIVATING";
    //刷新API服务地址配置广播
    public static final String ACTION_INIT_SERVER_CONFIG = APPLICATION_ACTION + ".INIT_SERVER_CONFIG";
    //刷新设备信息广播
    public static final String ACTION_INIT_DEVICE_CONFIG = APPLICATION_ACTION + ".INIT_DEVICE_CONFIG";
    //刷新好友列表广播
    public static final String ACTION_REFRESH_BUDDY = APPLICATION_ACTION + ".REFRESH_BUDDY";
    //刷新联系人列表广播
    public static final String ACTION_REFRESH_CONTACT = APPLICATION_ACTION + ".REFRESH_CONTACT";
    //刷新上课禁用设置广播
    public static final String ACTION_REFRESH_CLASSTIME = APPLICATION_ACTION + ".REFRESH_CLASSTIME";
    //刷新定位时段设置广播
    public static final String ACTION_REFRESH_CONCERNTIME = APPLICATION_ACTION + ".REFRESH_CONCERNTIME";
    //刷新闹钟列表广播
    public static final String ACTION_REFRESH_ALARMLIST = APPLICATION_ACTION + ".REFRESH_ALARMLIST";
    //刷新安全区域广播
    public static final String ACTION_REFRESH_BARRIER = APPLICATION_ACTION + ".REFRESH_BARRIER";
    //刷新手表桌面壁纸设置广播
    public static final String ACTION_REFRESH_WALLPAPERS = APPLICATION_ACTION + ".REFRESH_WALLPAPERS";
    //刷新手表WIFI设置广播
    public static final String ACTION_REFRESH_WIFILIST = APPLICATION_ACTION + ".REFRESH_WIFILIST";
    //刷新运动记步设置广播
    public static final String ACTION_GET_PETINFO = APPLICATION_ACTION + ".GET_PETINFO";
    //上报记步数据广播
    public static final String ACTION_UPLOAD_STEP = APPLICATION_ACTION + ".UPLOAD_STEP";
    //上报故事播放记录
    public static final String ACTION_UPLOAD_STORY_PLAY_HISTORY = APPLICATION_ACTION + ".UPLOAD_STORY_PLAY_HISTORY";
    //手表通话结束广播
    //定位请求广播
    public static final String ACTION_LOCATION = APPLICATION_ACTION + ".LOCATION";
    /********************************数据同步服务处理*****************************************/

    /********************************定位应用处理*****************************************/
    //手表通话结束广播
    public static final String ACTION_HANG_UP = APPLICATION_ACTION + ".HANG_UP";
    //关机定位广播
    public static final String ACTION_POWEROFF = APPLICATION_ACTION + ".ACTION_POWEROFF";
    /********************************定位应用处理*****************************************/

    /********************************SOS*****************************************/
    //手表SOS上传通知
    public static final String ACTION_UPLOAD_SOS = APPLICATION_ACTION + ".UPLOAD_SOS";
    /********************************SOS*****************************************/

    /********************************MQTT_CONNECTED*****************************************/
    //手表SOS上传通知
    public static final String ACTION_MTT_CONNECTED = APPLICATION_ACTION + ".MQTT_CONNECTED";
    /********************************MQTT_CONNECTED*****************************************/


    /********************************自定义赞念应用处理*****************************************/
    //任务列表刷新广播
    public static final String ACTION_UPDATED_TASK_LIST = APPLICATION_ACTION + ".UPDATE_TASK_LIST";
    /********************************自定义赞念应用处理*****************************************/

    //手表未初始化
    public static final String ACTION_DEVICE_NOT_INIT = APPLICATION_ACTION + ".DEVICE_NOT_INIT";

    public static final int FLAG_RECEIVER_INCLUDE_BACKGROUND = 0x01000000;

    public static final String ACTION_ACTIVATE_VSIM = "com.wherecom.intent.action.ACTIVATE_VSIM";

    public static final String ACTION_ACTIVATE_ESIM = "com.wherecom.intent.action.ACTIVATE_ESIM";
    public static final String ACTION_VOLUME_VOICE_CALL = APPLICATION_ACTION + ".VOLUME_VOICE_CALL";

    public enum Theme {
        /**
         * 手表主题
         */
        BLACK(0), PINK(1), BLUE(2), YELLOW(3), UNRECOGNIZED(-1);

        int value;

        Theme(int value) {
            this.value = value;
        }

        public static Theme forValue(int value) {
            switch (value) {
                case 0:
                    return BLACK;
                case 1:
                    return PINK;
                case 2:
                    return BLUE;
                case 3:
                    return YELLOW;
                default:
                    return UNRECOGNIZED;
            }
        }

        public int getValue() {
            return this.value;
        }
    }
}
